package net.sync.disruptor.demo1;

import com.lmax.disruptor.EventFactory;

/**
 * 2.定义事件工厂
 * 生产数据的工厂
 */
public class MyEventFactory implements EventFactory<MyEvent> {

    @Override
    public MyEvent newInstance() {
        return new MyEvent();
    }
}
